import request from '@/server/request';

export function getJobGroupByPage(data) {
  return request({
    url: 'jobGroup/queryByPage',
    method: 'post',
    data
  });
}

export function updateJobGroupByPage(data) {
  return request({
    url: 'jobGroup/update',
    method: 'post',
    data
  });
}

export function createJobGroupByPage(data) {
  return request({
    url: 'jobGroup/create',
    method: 'post',
    data
  });
}

export function queryByIdJobGroup(params) {
  return request({
    url: 'jobInfo/queryByJobGroupId',
    method: 'get',
    params
  });
}

export function deleteJobGroupByPage(data) {
  return request({
    url: 'jobGroup/delete',
    method: 'post',
    data
  });
}

export function testAddressConnect(params) {
  return request({
    url: 'jobGroup/testAddressConnect',
    method: 'get',
    params
  });
}
